from task import Task
sets = []
CompuCostlist =  [29, 14, 14, 25, 10, 27, 30, 22]
UpCostlist = [23, 219, 16, 7, 29, 18, 26, 59]
Mid_ddl_list = [89, 1358, 38, 50, 163, 34, 108, 267]
DDL_list = [126, 1558, 104, 96, 187, 81, 148, 366]
Period_list = [202, 2960, 160, 144, 200, 112, 196, 466]
until = 100000
def GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list):
    task_set = []
    for i in range(len(CompuCostlist)):
        c_i = CompuCostlist[i]
        r_i = UpCostlist[i]
        m_i = Mid_ddl_list[i]
        d_i = DDL_list[i]
        p_i = Period_list[i]
        task = Task(c_i,r_i,m_i,d_i,p_i)
        task_set.append(task)
    return task_set
task_set0 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set0)

CompuCostlist = [15, 18, 12, 12, 11, 18, 11, 19]
UpCostlist = [10, 3, 35, 1256, 146, 26, 3, 34]
Mid_ddl_list = [25, 17, 168, 9826, 540, 41, 5, 184]
DDL_list = [67, 49, 216, 10752, 910, 70, 33, 233]
Period_list = [92, 76, 264, 12806, 984, 110, 48, 428]
until = 100000
task_set1 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set1)
#--------------------------------------------------
CompuCostlist = [39, 11, 15, 12, 14, 5, 35, 40]
UpCostlist = [18, 84, 30, 14, 24, 20, 19, 17]
Mid_ddl_list = [122, 352, 109, 83, 177, 84, 35, 33]
DDL_list = [192, 435, 152, 115, 228, 90, 97, 112]
Period_list = [258, 596, 154, 186, 398, 160, 146, 154]
until = 100000
task_set2 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set2)

CompuCostlist = [24, 29, 5, 27, 28, 9, 16, 22]
UpCostlist = [14, 65, 12, 4, 118, 7, 45, 122]
Mid_ddl_list = [14, 394, 61, 29, 268, 37, 274, 1063]
DDL_list = [140, 531, 66, 56, 327, 54, 359, 1120]
Period_list = [182, 564, 94, 68, 520, 54, 500, 1562]
until = 100000
task_set3 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set3)

CompuCostlist = [7, 7, 6, 33, 36, 5, 16, 11]
UpCostlist = [2, 19, 5, 42, 18, 11, 15, 631]
Mid_ddl_list = [10, 72, 11, 270, 44, 63, 38, 2018]
DDL_list = [28, 186, 37, 316, 85, 109, 61, 2139]
Period_list = [36, 334, 52, 568, 120, 126, 98, 2666]
until = 100000
task_set4 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set4)

CompuCostlist = [13, 33, 16, 33, 35, 27, 9, 7]
UpCostlist = [16, 481, 24, 4, 78, 20, 51, 14]
Mid_ddl_list = [52, 2389, 52, 14, 251, 94, 261, 26]
DDL_list = [90, 2533, 125, 55, 386, 200, 272, 55]
Period_list = [98, 4022, 210, 76, 736, 292, 390, 92]
until = 100000
task_set5 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set5)

CompuCostlist = [12, 22, 20, 22, 39, 35, 18, 13]
UpCostlist = [11, 36, 186, 40, 20, 52, 34, 6]
Mid_ddl_list =  [57, 236, 1529, 363, 71, 280, 70, 7]
DDL_list = [82, 387, 1571, 405, 201, 427, 102, 25]
Period_list = [116, 624, 2306, 558, 246, 510, 136, 37]
until = 100000
task_set6 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set6)

CompuCostlist = [9, 11, 28, 31, 36, 5, 18, 6]
UpCostlist = [19, 4, 13, 16, 35, 6, 56, 110]
Mid_ddl_list = [57, 19, 23, 59, 79, 32, 408, 564]
DDL_list = [91, 52, 106, 132, 137, 44, 494, 661]
Period_list = [146, 52, 150, 228, 212, 56, 526, 666]
until = 100000
task_set7 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set7)

CompuCostlist =  [32, 9, 19, 9, 29, 13, 13, 8]
UpCostlist = [41, 1, 70, 19, 23, 54, 163, 5]
Mid_ddl_list = [222, 1, 230, 60, 102, 141, 1467, 12]
DDL_list = [296, 21, 259, 79, 169, 246, 1561, 61]
Period_list = [554, 23, 470, 84, 228, 398, 1602, 64]
until = 100000
task_set8 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set8)

CompuCostlist = [14, 8, 32, 19, 6, 18, 28, 24]
UpCostlist = [1449, 8, 750, 13, 15, 3, 11, 192]
Mid_ddl_list = [7201, 21, 2667, 27, 94, 6, 23, 486]
DDL_list = [9900, 77, 2855, 58, 112, 46, 87, 876]
Period_list = [13352, 136, 3248, 68, 202, 58, 144, 1630]
until = 100000
task_set9 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set9)

# mrset = [0,0,11,6,2,28,0,4,6,24]
mrset = [0,0,6,3,2,49,0,4,5,24]